/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package jps_s10996_s7175.expression.auxname;

import edu.pjwstk.jps.ast.IExpression;
import edu.pjwstk.jps.ast.auxname.IAuxiliaryNameExpression;
import edu.pjwstk.jps.visitor.ASTVisitor;
import jps_s10996_s7175.ast.Expression;

/**
 *
 * @author Tomasz
 */
public class AuxiliaryNameExpression extends Expression implements IAuxiliaryNameExpression {

    private String sAuxiliaryName;
    private IExpression oInnerExpression;
    
    public AuxiliaryNameExpression(IExpression oInnerExpression,String sAuxiliaryName){
        this.sAuxiliaryName = sAuxiliaryName;
        this.oInnerExpression = oInnerExpression;
    }

    @Override
    public void accept(ASTVisitor visitor) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public String getAuxiliaryName() {
        return sAuxiliaryName;
    }

    @Override
    public IExpression getInnerExpression() {
        return oInnerExpression;
    }

    @Override
    public String toString() {
        return this.getClass().getName() + " > " +
                this.sAuxiliaryName + " > " +
                this.oInnerExpression.toString() +
                 "\n";
    }

}
